$(function() {
	/* 轮播 */
	var mySwiper = new Swiper('.swiper-container', {
		direction : 'horizontal', // 垂直切换选项
		height: 350,
		width: 990,
		autoplay : {
			delay : 5000,
			disableOnInteraction : false,
		}, // 自动切换
		loop : true, // 循环模式选项
		pagination : { // 分页器
			el : '.swiper-pagination',
			type : 'bullets',
			clickable : true,
			renderProgressbar : function(progressbarFillClass) {
				return '<span class="' + progressbarFillClass + '"></span>';
			}
		},
		navigation : { // 如果需要前进后退按钮
			nextEl : '.swiper-button-next',
			prevEl : '.swiper-button-prev',
		}

	})
	
	mySwiper.navigation.$nextEl.addClass('layui-hide');
	mySwiper.navigation.$prevEl.addClass('layui-hide');

	// 鼠标移出隐藏按钮，移入显示按钮
	mySwiper.el.onmouseover = function() {
		mySwiper.navigation.$nextEl.removeClass('layui-hide');
		mySwiper.navigation.$prevEl.removeClass('layui-hide');
	}

	mySwiper.el.onmouseout = function() {
		mySwiper.navigation.$nextEl.addClass('layui-hide');
		mySwiper.navigation.$prevEl.addClass('layui-hide');
	}

	/* 获取时间 */
	function myDateN() {

		var myGetDate = $('.integration-link-time #getLinkDay');
		var myGetMonth = $('.integration-link-time #getLinkMonth');

		var myDate = new Date();
		var getDate = myDate.getDate(); // 获取当前日期
		var getMonth = myDate.getMonth();

		switch (getMonth) {
		case 0:
			myGetMonth.text("January")
			break;
		case 1:
			myGetMonth.text("February")
			break;
		case 2:
			myGetMonth.text("March")
			break;
		case 3:
			myGetMonth.text("April")
			break;
		case 4:
			myGetMonth.text("May")
			break;
		case 5:
			myGetMonth.text("June")
			break;
		case 6:
			myGetMonth.text("July")
			break;
		case 7:
			myGetMonth.text("August")
			break;
		case 8:
			myGetMonth.text("September")
			break;
		case 9:
			myGetMonth.text("October")
			break;
		case 10:
			myGetMonth.text("November")
			break;
		default:
			myGetMonth.text("December")
		}

		myGetDate.text(getDate)
	}

	myDateN();

})
